package com.test.demo.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Car {
    @JsonProperty("name_a") //输入
    @JSONField(name = "name_a") //输出
    String name;

    @JsonProperty("height_a")
    @JSONField(name = "height_a")
    String height;

    @JsonProperty("brand_a")
    @JSONField(name = "brand_a")
    String brand;
}
